package com.fh.fruit.service.goods;

import java.util.List;
import java.util.Map;

import com.fh.entity.Page;
import com.fh.fruit.entity.goods.Goods;
import com.fh.fruit.entity.goods.GoodsUnit;
import com.fh.fruit.entity.label.Label;
import com.fh.fruit.entity.label.LabelAttr;
import com.fh.fruit.entity.spec.Spec;
import com.fh.util.PageData;

/** 商品接口类
 * 修改时间：2017.7.3
 */
public interface GoodsManager {

	String getClassIdByPid(String id) throws Exception;

	List<Goods> listGoods(Page page) throws Exception;

	List<GoodsUnit> getGoodsUnitList() throws Exception;

	int deleteImage(Map<Object, String> param) throws Exception;

	int saveG(PageData pd) throws Exception;

	Goods findById(PageData pd) throws Exception;

	void editG(PageData pd) throws Exception;

	void delGood(PageData pd) throws Exception;

	void delGoods(PageData pd) throws Exception;

	int updateState(PageData pd) throws Exception;

	List<Spec> getGoodsSpecList(Page page) throws Exception;

	LabelAttr getLabelAttr(String id) throws Exception;

	Spec getGoodsSpec(PageData pd) throws Exception;

	void updateGoodsEdit(PageData pd) throws Exception;

	int updateSpecState(PageData pd) throws Exception;

	List<Label> getGoodsLabelList(PageData pd)throws Exception;

	int updateBatchState(PageData p) throws Exception;

	int updateSpecStateList(PageData p) throws Exception;

	int updateGoodsState(Goods data) throws Exception;

	void updateSpecStates(Spec spec) throws Exception;

	List<GoodsUnit> getHarvestUnitList()throws Exception;

	Map<String, Object> getGoodsSpecTime(PageData pd) throws Exception;

	int updateImage(Map<Object, String> param) throws Exception;

	int updateSpecImage(Map<Object, String> param) throws Exception;

	List<Map<String, Object>> getWlList() throws Exception;

	int updateMealPic(Map<Object, String> param) throws Exception;

}
